home *** CD-ROM | disk | FTP | other *** search
- Path: ruger-90.slip.uiuc.edu!user
- From: bwood@uiuc.edu (Brett Wood)
- Newsgroups: comp.lang.c
- Subject: list permutation algorithms
- Date: Tue, 30 Jan 1996 16:54:26 -0600
- Organization: University of Illinois
- Message-ID: <bwood-3001961654260001@ruger-90.slip.uiuc.edu>
- NNTP-Posting-Host: ruger-90.slip.uiuc.edu
-
- I am looking for a simple algorithm to find all of the possible permutations of
- a one-dimensional array. For example, the permutations of {1,2,3} are:
- {1,2,3}
- {1,3,2}
- {2,1,3}
- {2,3,1}
- {3,1,2}
- {3,2,1}
- Does anyone know one off-hand, or where I might find one?
- Thank you, Brett Wood
-